home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
database
/
foodco55.zip
/
INSTALL.DAT
< prev
next >
Wrap
Text File
|
1995-12-19
|
9KB
|
267 lines
/*Project: Foodco
*Version: 5.5
*INSTALL.DAT generated by: AMM & JAW
*Copyright (c) 1984-1995 Software Creations*/
/* Used= A C D E F G H I K N O P R S T U V W X Y */
@DefineProject
@Name = "Foodco"
@Version = "5.5"
@Immediate = 1
@Terse
@InDiskBell = 1
@Subdir = "\\"
@OutDrive = C
@Requires @HardDisk
@AssumeHardDisk = 1
@Verify
@EndProject
@Display
@Cls
This program will install @Name version @Version on your computer
system. You may press the [Esc] key at any time to abort the
installation.
The installation program will ask you several questions about
your computer. Each question has a default answer that will be
flashing on the screen. If the default answer is correct, press
the ENTER key in response to the question. Otherwise, use the
arrow keys to select the correct answer, then press the ENTER key.
@Pause
@EndDisplay
@If (@RAMAvail < 530K)
@Display
@Cls
There is not enough free conventional memory to run the installation
properly. Please free up at least 530K of conventional memory by
removing TSR's or other programs from memory.
The installation program will now close.
@Pause
@Exit
@EndDisplay
@EndIf
@DefineVars
@Qstring @DosDir = "C:\\DOS"
@EndVars
CHOOSE_AGAIN:
@GetOutDrive
@Cls
On which disk drive do you wish to install @Name?
@Suppress A
@Suppress B
@EndOutDrive
@If (@Exists ("@OutDrive:\\FOODCO5\\*.*"))
@Display
WARNING: Foodco already installed!
Foodco is already installed on drive @Outdrive. If you continue, the
current program will be overwritten, along with any custom settings
that you may have altered.
@Pause
@EndDisplay
@EndIf
@Display
@If(@DiskFree @OutDrive < 15000000)
The selected output disk drive only has
@DiskFree @OutDrive bytes free. @Name requires
15,000,000 bytes free.
@Pause
@EndIf
@EndDisplay
FTINSTALL:
@GetGroups
@LocalWindow (11,40)
Would you like to automatically update your computer's configuration
files?
NOTE: 'YES' will save originals as CONFIG.FCO and AUTOEXEC.FCO if
any changes were made.
@Set y = "YES - Update CONFIG.SYS and AUTOEXEC.BAT."
@Set n = "NO - Do Not Update CONFIG.SYS and AUTOEXEC.BAT."
@EndGroups
NOTVALID1:
@If ('y' [= @Group && ! @Exists("C:\\DOS\\*.*"))
@GetString @DosDir
Please type the drive and full path name where DOS is installed
and press the ENTER key to continue. i.e. C:\MSDOS
@Prompt = "DOS directory?"
@EndString @DosDir
@If (! @Exists "@DosDir\\*.*")
@Display
@Cls
This Dos Directory is invalid, please enter a valid Dos
directory.
@Pause
@EndDisplay
@GOTO NOTVALID1
@EndIf
@EndIf
@MkDir("@OutDrive:\\FOODCO5")
@MkDir("@OutDrive:\\FOODCO5\\SPOOL")
@MkDir("@OutDrive:\\FOODCO5\\UTILS")
@MkDir("@OutDrive:\\FOODCO5\\REGS")
@MkDir("@OutDrive:\\FOODCO5\\INPORT")
@MkDir("@OutDrive:\\FOODCO5\\BACKUP.OLD")
@MkDir("@OutDrive:\\FOODCO5\\TRAINING")
@MkDir("@OutDrive:\\FOODCO5\\MERGE")
@MkDir("@OutDrive:\\FOODCO5\\GRAPHICS")
@FileAttr("@OutDrive:\\FOODCO5\\*.*", "r-")
@FileAttr("@OutDrive:\\FOODCO5\\BTRIEVE\\*.*", "r-")
@FileAttr("@OutDrive:\\FOODCO5\\INPORT\\*.*", "r-")
@FileAttr("@OutDrive:\\FOODCO5\\TRAINING\\*.*", "r-")
@FileAttr("@OutDrive:\\FOODCO5\\MERGE\\*.*", "r-")
@Delete("@OutDrive:\\FOODCO5\\TRAINING\\*.*")
@Delete("@OutDrive:\\FOODCO5\\MERGE\\*.*")
@MkDir("@OutDrive:\\FOODCO5\\TRAINING")
@MkDir("@OutDrive:\\FOODCO5\\MERGE")
@If (@Exists "@OutDrive:\\FOODCO5\\UNITCODE.*")
@Copy("@OutDrive:\\FOODCO5\\UNITCODE.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
@EndIf
@If (@Exists "@OutDrive:\\FOODCO5\\PRINTDEF.DAT")
@Copy("@OutDrive:\\FOODCO5\\PRINTDEF.DAT", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
@EndIf
@If (@Exists "@OutDrive:\\FOODCO5\\REPDEPS.*")
@Copy("@OutDrive:\\FOODCO5\\REPDEPS.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
@EndIf
@If (@Exists "@OutDrive:\\FOODCO5\\PODEFS.*")
@Copy("@OutDrive:\\FOODCO5\\PODEFS.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
@EndIf
@If (@Exists "@OutDrive:\\FOODCO5\\POREPDEF.*")
@Copy("@OutDrive:\\FOODCO5\\POREPDEF.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
@EndIf
@If (@Exists "@OutDrive:\\FOODCO5\\GENLIST.*")
@Copy("@OutDrive:\\FOODCO5\\GENLIST.*", "@OutDrive:\\FOODCO5\\BACKUP.OLD")
@EndIf
@If (@Exists ("@OutDrive:\\FOODCO5\\INV_DATA\\INV.BTR"))
@Display
WARNING: Data may alreay exist
There may already be data installed in the @OutDrive:\FOODCO5\INV_DATA
directory. If you continue, the inventory data will be
overwritten. Please make a DOS backup of this directory
if it contains important data.
Press [ESC] now to abort the installation if you have not made
a complete DOS backup and you would like to. See your DOS
Manual on how to use BACKUP or MSBACKUP.
@Pause
@EndDisplay
@EndIf
@If (@Exists ("@OutDrive:\\FOODCO5\\YOURSITE\\*.BTR"))
@Display
WARNING: Data may alreay exist
There may already be data installed in the @OutDrive:\FOODCO5\YOURSITE
directory. If you continue, the inventory data will be
overwritten. Please make a DOS backup of this directory
if it contains important data.
Press [ESC] now to abort the installation if you have not made
a complete DOS backup and you would like to. See your DOS
Manual on how to use BACKUP or MSBACKUP.
@Pause
@EndDisplay
@EndIf
@Delete("@OutDrive:\\FOODCO5\\BREPMENU.EXE")
@Delete("@OutDrive:\\FOODCO5\\BUDGET5.EXE")
@Delete("@OutDrive:\\FOODCO5\\CVT1.EXE")
@Delete("@OutDrive:\\FOODCO5\\DIAP.EXE")
@Delete("@OutDrive:\\FOODCO5\\EXPLODE.EXE")
@Delete("@OutDrive:\\FOODCO5\\EXPLODE3.EXE")
@Delete("@OutDrive:\\FOODCO5\\EXPLODE1.BAT")
@Delete("@OutDrive:\\FOODCO5\\FCREPS5.EXE")
@Delete("@OutDrive:\\FOODCO5\\MASTEREN.EXE")
@Delete("@OutDrive:\\FOODCO5\\MASTMENU.EXE")
@Delete("@OutDrive:\\FOODCO5\\MULTI5.EXE")
@Delete("@OutDrive:\\FOODCO5\\MPOREPS.EXE")
@Delete("@OutDrive:\\FOODCO5\\PO.EXE")
@Delete("@OutDrive:\\FOODCO5\\RUNME.EXE")
@Delete("@OutDrive:\\FOODCO5\\TESTDIO.EXE")
@Delete("@OutDrive:\\FOODCO5\\UTILS.EXE")
@Delete("@OutDrive:\\FOODCO5\\EXPLODE.FIL")
@Delete("@OutDrive:\\FOODCO5\\PFDATA.SYS")
@Delete("@OutDrive:\\FOODCO5\\FOODCO5.SYS")
@Delete("@OutDrive:\\FOODCO5\\IPCX.COM")
@Delete("@OutDrive:\\FOODCO5\\MEALCVT.EXE")
@Delete("@OutDrive:\\FOODCO5\\TESTDIO.EXE")
@Delete("@OutDrive:\\FOODCO5\\SECTHR.BTR")
@Delete("@OutDrive:\\FOODCO5\\REGISTER.EXE")
@Delete("@OutDrive:\\FOODCO5\\REGIMP.BAT")
@Delete("@OutDrive:\\FOODCO5\\SPOOL\\REGISTER.EXE")
@Delete("@OutDrive:\\FOODCO5\\REGS\\REGISTER.EXE")
@Delete("@OutDrive:\\FOODCO5\\PKUNZIP.EXE")
@Delete("@OutDrive:\\FOODCO5\\ACTIVAT*.*")
@Delete("@OutDrive:\\FOODCO5\\CONFIG.DAT")
@Delete("@OutDrive:\\FOODCO5\\CONTINUE.BAT")
@Delete("@OutDrive:\\FOODCO5\\INSTALL.BAT")
@Delete("@OutDrive:\\FOODCO5\\*.?RP")
@Delete("@OutDrive:\\FOODCO5\\*.PST")
@Delete("@OutDrive:\\FOODCO5\\CUSTOM.MAC")
@Delete("@OutDrive:\\FOODCO5\\DUMPOPTI.EXE")
@Delete("@OutDrive:\\FOODCO5\\GHOSTJR*.*")
@Delete("@OutDrive:\\FOODCO5\\PROBLEM.8")
@Delete("@OutDrive:\\FOODCO5\\REC*.BAT")
@Delete("@OutDrive:\\FOODCO5\\MEALCVT.EXE")
@Delete("@OutDrive:\\FOODCO5\\TESTDIO.EXE")
@Delete("@OutDrive:\\FOODCO5\\COMMISAR.EXE")
@Delete("@OutDrive:\\FOODCO5\\IMPORTOR.EXE")
@Write("@OutDrive:\\Foodco5\\Foodco5.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
@Write("@OutDrive:\\Foodco5\\Tagdel.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
@Write("@OutDrive:\\Foodco5\\Comm.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
@Write("@OutDrive:\\Foodco5\\Order.bat", "wt", "@@Echo OFF\nSet Fdrive=@Outdrive:\n")
@If (! @Exists("@Outdrive:\\Foodco5\\Mult5.prf") && 'i' [= @Group)
@Write("@OutDrive:\\Foodco5\\Mult5.prf", "wt", "DEMODATA\nINV_DATA\nYOURSITE\n")
@Endif
@Finish
@Spawn("FOODCO.EXE -d -o @OutDrive:\\")
@Spawn("ACRODOS.EXE -d -o @OutDrive:\\")
@Write("@OutDrive:\\ACRODOS\\ACROBAT.VMC", "at", "swapname=@OutDrive:\\ACRODOS\\ACROBAT.SWP\n")
@Write("@OutDrive:\\ACRODOS\\ACROBAT.INI", "at", "\n[Fonts]\nFontDir=@OutDrive:\\ACRODOS\\PSFONTS\n")
@Write("@OutDrive:\\ACRODOS\\ACROBAT.INI", "at", "\n[Files]\nDefaultPath=@OutDrive:\\ACRODOS\n")
@Write("@OutDrive:\\ACRODOS\\ACROBAT.INI", "at", "TempFilePath=@OutDrive:\\ACRODOS\\\nDefaultExt=*.PDF\n")
@ChDrive @OutDrive
@ChDir "\\FOODCO5"
@System("Copy Foodco5.bat + Foodco5.ins Foodco5.bat")
@Cls
@System("Copy Tagdel.bat + Tagdel.ins Tagdel.bat")
@Cls
@System("Copy Comm.bat + Comm.ins Comm.bat")
@Cls
@System("Copy Order.bat + Order.ins Order.bat")
@Cls
@If ('y' [= @Group ) @Spawn ("\\FOODCO5\\SETUP2.EXE @DosDir @BootDrive") @EndIf
@Cls
Installation of @Name @version is now finished.
You will need to reboot your computer before any changes
made to CONFIG.SYS or AUTOEXEC.BAT will take effect.
You can view the Fast Start Online Manual at any time by typing
MANUAL from the \FOODCO5 directory.
Press any key to view the Fast Start Online Manual now.
@Pause
@Execute("@outdrive:\\ACRODOS\\ACROBAT.EXE", "\\ACRODOS\\FASTSTRT.PDF")
@EndFinish
/* end-of-file */